<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Intro')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-intro" class="form-control " rows="5" name="row[intro]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Needtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-needtime" class="form-control " name="row[needtime]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Total_point')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-total_point" class="form-control" name="row[total_point]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pass_point')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pass_point" class="form-control" name="row[pass_point]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xuefen')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-xuefen" class="form-control" name="row[xuefen]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tifen')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tifen" class="form-control" name="row[tifen]" type="number">
        </div>
    </div>

    <?php  if(!isset($ids)){ ?>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Avideo_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-avideo_id"  data-source="avideo/index" class="form-control selectpage" name="row[avideo_id]" type="text" value="">
        </div>
    </div>
    <?php } else{?>
    <input type="hidden" value="{$ids}" name="row[avideo_id]">
    <?php }?>

    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Cate_id')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<input id="c-cate_id"  data-source="category/index" class="form-control selectpage" name="row[cate_id]" type="text" value="">-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <?php  if(!isset($ids)){ ?>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">考试所属阶段:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-period_id" data-rule="required" data-source="period/index" class="form-control selectpage" name="row[period_id]" type="text" value="">
        </div>
    </div>
    <?php }?>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
